package com.controller;


import com.entity.Menu;
import com.service.MenuService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.time.Instant;
import java.time.LocalDateTime;

@RestController
public class MenuController {

    private Logger logger = LoggerFactory.getLogger(MenuController.class);

    @Autowired
    public MenuService menuService;


    @RequestMapping("menu")

    public Menu menu() {
        logger.info("获取menu 数据");
        Menu menu = menuService.selectById(1);

        return menu;

    }

}
